var path = require('path');
module.exports = function (UC, source, config, ArFor, cache, package) {


    var InitCache = config.Unzip;

    var schema = config.initDB;

    var openjson = config.openjson;


    var router = function (req, res, next) {

        if (config.install) {
            res.render('./tourl.ejs', {
                'tourl': './../../../admin/'
            });
        } else {
            var obj = {
                title: 'install'
            };
            InitCache(function () {
                var File = "install.html";
                cache.render({
                    id: "XMKEA9KCGX",
                    file: './jviews/index.ejs'
                }, obj, req, res, File);
            })
        }
    };
    return router;
}